package com.qyhl.module_practice.rank.street;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeListBean;

import java.util.List;

public class PracticeStreetRankPresenter implements PracticeStreetRankContract.PracticeStreetRankPresenter {
    private PracticeStreetRankActivity mView;
    private PracticeStreetRankModel mModel;

    PracticeStreetRankPresenter(PracticeStreetRankActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeStreetRankModel(this);
    }

    @Override
    public void getList(String instId, String page, int type) {
        mModel.getList(instId, page, type);
    }

    @Override
    public void setList(List<PracticeListBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
